package com.yonyou.cyxdms.basedata.service.dto.productOption;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;


/**
 * <p>
 * 
 * </p>
 *
 * @author zys
 * @since 2020-02-10
 */

public class VsProductOptionDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
        private Long productOptionId;
        /**
     * 整车产品_ID
     */
        private Long productId;
        /**
     * 选装ID
     */
        private Long optionId;
        /**
     * 是否删除(0:未删除1:删除)
     */
        private Boolean isDeleted;
        /**
     * 公司代码
     */
        private String companyCode;
        /**
     * 所有者代码
     */
        private String ownerCode;
        /**
     * 所有者的父组织代码（用于二网使用）
     */
        private String ownerParCode;
    
    public VsProductOptionDTO() {
        super();
    }




    public Long getProductOptionId() {
        return productOptionId;
    }


    public void setProductOptionId(Long productOptionId) {
        this.productOptionId = productOptionId;
    }



    public Long getProductId() {
        return productId;
    }


    public void setProductId(Long productId) {
        this.productId = productId;
    }



    public Long getOptionId() {
        return optionId;
    }


    public void setOptionId(Long optionId) {
        this.optionId = optionId;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    public String getCompanyCode() {
        return companyCode;
    }


    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }



    public String getOwnerCode() {
        return ownerCode;
    }


    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }



    public String getOwnerParCode() {
        return ownerParCode;
    }


    public void setOwnerParCode(String ownerParCode) {
        this.ownerParCode = ownerParCode;
    }



    @Override
    public String toString() {
        return "VsProductOptionDTO{" +
        "productOptionId=" + productOptionId +
        ", productId=" + productId +
        ", optionId=" + optionId +
        ", isDeleted=" + isDeleted +
        ", companyCode=" + companyCode +
        ", ownerCode=" + ownerCode +
        ", ownerParCode=" + ownerParCode +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author zys
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author zys
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "productOptionId");
    }

}
